﻿<%@ Page Language="C#" ValidateRequest="false" Inherits="FrontBasePage" %>
<%@ Import Namespace="Whir.Framework" %>
<%@ Import Namespace="Whir.Service" %>
<%@ Import Namespace="Whir.Label" %>
<script type="text/C#" runat="server">
/*

 *描述： 本文件由ezEIP模板发布引擎生成，请勿直接更改此文件！！ 

 *模板路径：C:\Z_中濠酒店集团（深圳）有限公司\pc\template\人才招聘.shtml

 *生成时间：2020-06-18 17:20:26

 */

public Whir.Domain.Column PageColumn ; 
public Whir.Domain.SiteInfo PageSiteInfo ; 
public string columnid=""; 
protected void Page_Load(object sender, EventArgs e){
    columnid=Server.UrlDecode(RequestUtil.Instance.GetQueryString("columnid"));

 
    PageColumn = ServiceFactory.ColumnService.SingleOrDefault<Whir.Domain.Column>(123);
    PageSiteInfo = ServiceFactory.SiteInfoService.SingleOrDefault<Whir.Domain.SiteInfo>(2);
    Whir.Label.LabelHelper.Instance.SerColumnAndSiteInfoToChildControl(this, PageSiteInfo, PageColumn); 
    DataBind();
}
</script><!DOCTYPE html>
<html lang="zh-cn">
<head>
<!-- head Start-->
<wtl:include runat="server"      filename="head.html"></wtl:include>
<!-- head end -->
<wtl:Menu runat="server"  columnid='<%#PageColumn.ColumnId.ToInt()%>' OnlyOne="true"><ItemTemplate>
<script type="text/javascript">
   //定义栏目ID
   var navID = '<%# Container.DataRow["ColumnId"].ToReplace() %>';
</script>
</ItemTemplate></wtl:Menu>
<wtl:Resource runat="server"     ></wtl:Resource>
</head>
<body>
<!--top-->
<wtl:include runat="server"       filename="top.html"></wtl:include>
<!--top End-->
<div class="Banner">
    <!--banner-->
    <wtl:include runat="server"      filename="banner.html"></wtl:include>
    <!--banner End-->
	<!--top-->
	<wtl:include runat="server"      filename="title.html"></wtl:include>
	<!--top End-->
</div>
<script>
var wh=$(window).outerHeight(true);
$('.Banner').height($(window).outerHeight(true));
setTimeout(function(){
	$('.Banner').addClass('active');	
},300);
</script>
<!-- banner -->
<div class="Main Job Pfsc">
	<div class="JobBg">
		<div class="w1200">
			<div class="JobList">
			    <ul class="ul">
			        <li class="first">
			            <div class="JobTop">
			                <dl class="dl">
			                  <dd class="dd1">招聘岗位</dd>
			                  <dd class="dd2">招聘人数</dd>
			                  <dd class="dd3">学历要求</dd>
			                  <dd class="dd4">工作地点</dd>
			                  <dd class="dd5">发布日期</dd>
			                  <dd class="dd6">查看</dd>
			                  <div class="clear"></div>
			                </dl>
			            </div>
			        </li>
					<wtl:list runat="server"  nulltip="暂无数据" id="jobList" needpage="true" where="IsDel=0" order="sort desc,createdate desc"><ItemTemplate>
			        <li class="li">
			            <div class="JobTop">
			                <dl class="dl jobInfo">
								<dd class="dd1"><wtl:Category runat="server"  Sql="select * from Whir_U_Jobs_Category where typeid=126 and Whir_U_Jobs_Category_PId={0}" sql0='<%# Container.DataRow["CategoryId"].ToReplace() %>'><ItemTemplate><%# Container.DataRow["categoryname"].ToReplace() %></ItemTemplate></wtl:Category>/<i><%# Container.DataRow["JobName"].ToReplace() %></i></dd>
								<dd class="dd2"><%# Container.DataRow["JobNum"].ToReplace() %>人</dd>
								<dd class="dd3">
								   <wtl:list runat="server"  sql="select categoryname from whir_u_category where typeID=172 and whir_u_category_pid={0}" sql0='<%# Container.DataRow["edu"].ToReplace() %>'><ItemTemplate><%# Container.DataRow["categoryname"].ToReplace() %></ItemTemplate></wtl:list>
								</dd>
								<dd class="dd4"><%# Container.DataRow["WorkPlace"].ToReplace() %></dd>
								<dd class="dd5"><%# Container.DataRow["CreateDate"].ToReplace().ToDateTime().ToString("MM-dd") %></dd>
								<dd class="dd6"><i class="icon"></i></dd>
								<div class="clear"></div>
			                </dl>
			            </div>
			            <div class="JobCon">
							<div class="item">
								<div class="item-769">
									<ul class="ul">
										<li class="list1">招聘人数:<span></span></li>
										<li class="list2">工作地点:<span></span></li>
										<li class="list3">发布日期:<span></span></li>
									</ul>
								</div>
								<%# Container.DataRow["Content"].ToReplace() %>
								<a href="javascript:;" class="jobBtn">我要应聘</a>
							</div>
			            </div>
			        </li>	               
					</ItemTemplate></wtl:list>
					<div class="clear"></div>
					<script>
						$(function(){
							$(".Job .li").each(function(idx,item){
								var _that = $(this);
								var dd2 = _that.find(".JobTop").find(".dd2").text();
								var dd4 = _that.find(".JobTop").find(".dd4").text();
								var dd5 = _that.find(".JobTop").find(".dd5").text();
								_that.find(".JobCon").find(".list1 span").text(dd2);
								_that.find(".JobCon").find(".list2 span").text(dd4);
								_that.find(".JobCon").find(".list3 span").text(dd5);
							})
						})
					</script>
				</ul>
				<wtl:Pager runat="server"      PageSize="6" isstatic="false" TargetID="jobList" Footer="3">
				<div class="PageBox">
					<div class="Pages">
						<span class="p_page">
							<a href='{$FirstPageUrl}' class="a_first">首页</a>
							<a href='{$PrevPageUrl}' class="a_prev">上一页</a>
							<em class="num">
							<Numeric>
							<a href='{$PageUrl}' class='{$PageNumClass}' id="pageNum{$PageNum}">{$PageNum}</a>
							</Numeric>
							</em>
							<a href='{$NextPageUrl}' class="a_next">下一页</a>
							<a href='{$LastPageUrl}' class="a_end">末页</a> 
						</span>
					</div> 
				</div>
				</wtl:Pager>
			</div>
		</div>	
	</div>
</div>
<!-- 弹出层 -->
<div class="JobMask Pfsc">
	<div class="MaskBox">
		<a class="MaskClore" href='javascript:;'>【关闭】</a>
        <div class="MaskForm">
            <h3 class="h3"></h3>
            <div class="MaskCon">
				<div class="MTxt"></div>
				<div class="MForm">
					<form id='whir_6' res='whirform'>
						<div class="selectJob">
						<span res="option" formid="141238" firstoption="==请选择=="></span>
						</div>
						<ul class="ul">
							<li class="li1">
								<div class="left"> 姓名：</div>
								<div class="right"> 
									<input id="17760" name="17760" type="text" class="text" maxlength="512" value=""/>
									<span name="whirValidator" validatorfor="17760" required="True" requiredmsg="姓名为必填" regexp="" errmsg="姓名验证不通过"></span>
								</div>
								<div class="clear"></div>
							</li>
							<li class="li1">
								<div class="left"> 邮箱：</div>
								<div class="right"> 
									<input id="17769" name="17769" type="text" class="text" maxlength="512" value=""/>
									<span name="whirValidator" validatorfor="17769" required="False" requiredmsg="邮箱为必填" regexp="^\w+([-+.]\w+)*@\w+([-.]\\w+)*\.\w+([-.]\w+)*$" errmsg="邮箱验证不通过"></span>
								</div>
								<div class="clear"></div>
							</li>
							<li class="li1">
								<div class="left">联系电话：</div>
								<div class="right"> 
									<input id="17771" name="17771" type="text" class="text" maxlength="512" value=""/>
									<span name="whirValidator" validatorfor="17771" required="True" requiredmsg="联系电话为必填" regexp="(^([0-9]{4}-[0-9]{8})|([0-9]{3}-[0-9]{8})|([0-9]{4}-[0-9]{7})$)|(^(1[3|4|5|7|8])(\d){9}$)" errmsg="联系电话验证不通过"></span>
								</div>
								<div class="clear"></div>
							</li>   
							<li class="li1 li2">       
								<div class="left">简介：</div>
								<div class="right"> 
									<a href="javascript:;" id="filesbox"> <span class="txts">请选择文件</span> <span class="txt"></span></a>
									<div style="display: none;">
										<input name="18236_0" type="file" id="file"/>
										<span name="whirValidator" validatorfor="18236" required="True" requiredmsg="简历为必填" regexp="" errmsg="简历验证不通过"></span>
									</div>                
									支持格式：txt|doc|docx|xls|xlsx|pdf|jpg
								</div>
								<div class="clear"></div>
							</li>
							<div class="clear"></div>
						</ul>
						<input type="button" onclick="whir.form.submit('whir_6','127','0','6')" class="FormBtn" value="在线申请">
					</form>
				</div>
            </div>
        </div>
	</div>
</div>
<!-- 弹出层 -->
<script>
//$('.Job .JobList ul li').eq(1).addClass('on');
//$('.Job .JobList ul li').eq(1).find('.JobCon').show();

$('.Job .JobList ul li:not(".first") .JobTop').click(function(){
   var _this=$(this).parents('li');
   _this.toggleClass('on');
   _this.siblings('li').removeClass('on');
   _this.find('.JobCon').stop(true).slideToggle();
   _this.siblings('li').find('.JobCon').stop(true).slideUp();
})
$('.Job .jobBtn').click(function(){
	var hdoc=$(document).height();
	var wdoc=$(document).width();
	$('.JobMask').css({"height":hdoc,"width":wdoc});
	$('.JobMask').show();
	var windowH=$(window).height();
	var MaskBoxH=$('.JobMask .MaskBox').height();
	$('.JobMask .MaskBox').css({'margin-top':(windowH-MaskBoxH)/2+'px'});
	
	/*获取职位名称*/
	var _jobName = $(this).parents('.li').find('.dd1').children('i').text();
	$('.selectJob select').val(_jobName);
	$('.selectJob select').find('option:contains(' + _jobName + ')').attr("selected",true);
	/*获取职位名称*/
});
$(".JobMask  a.MaskClore").click(function(){
	$('.JobMask').hide();
});
function myAddEvent(obj,ev,fn){
	if(obj.attachEvent){
		obj.attachEvent("on" + ev,fn);
	}else{
		obj.addEventListener(ev,fn,false);
	}
}
var fileSelect = document.getElementById("filesbox"),
	fileElem = document.getElementById("file");
	myAddEvent( fileSelect, "click" , function (e) {
	if (fileElem) {
	   fileElem.click();
	}
});
$('#file').change(function() {
	var s=$(this).val();
	  $('#filesbox span.txt').text(s);
});
</script>
<!--bottom-->
<wtl:include runat="server"       filename="bottom.html"></wtl:include>
<!--bottom End-->
</body>
</html>